package net.xi.news.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("t_images")
public class Images {

    @TableId(type = IdType.ASSIGN_UUID)
    private String id;

    private String name;
    private Integer num;

    private Type type;
    /**
     * 图片url
     */
    private String imageurl;
    /**
     * 点击跳转的url
     */
    private String url;
    public enum Type{
        INDEX(1,"首页轮播图"),WIKI(2,"禁毒百科轮播图");

        Type(int i, String s) {

        }
    }

}
